<?php

use app\helpers\SettingHelper;
use yii\helpers\Html;
use yii\widgets\ActiveForm;

?>

<div class="login-header"><?= SettingHelper::WEB_NAME; ?></div>
<div class="login-block">
    <?php $form = ActiveForm::begin(); ?>

    <?= $form->field($model, 'username')->textInput(['placeholder' => '用户名'])->label(FALSE); ?>
    <?= $form->field($model, 'password')->passwordInput(['placeholder' => '密码'])->label(FALSE); ?>
    <?= $form->field($model, 'rememberMe')->checkbox(); ?>

    <div class="form-group">
        <?= Html::submitButton('登录', ['class' => 'btn']) ?>
    </div>
    <div class="login-error"></div>

    <?php ActiveForm::end(); ?>
</div>

